package com.bdqn.oa.dao;



import com.bdqn.oa.entity.VoteOption;

import java.sql.SQLException;
import java.util.List;

/**
 * @author qiaolu
 * @date 2022/7/20 15:26
 */
public interface VoteoptionDao {
    /**
     * 通过VoteOptionid查询
     * @return
     * @throws SQLException
     */
    public VoteOption getbyidVoteOption(Integer VoteOptionId)throws SQLException;

    /**
     * 查询全部投票选项表
     * @return
     * @throws SQLException
     */
    public List<VoteOption> listAllvoteoption()throws SQLException;
    /**
     * 增加选项投票
     * @return
     * @throws SQLException
     */
    public int saveVoteOption(VoteOption voteOption)throws SQLException;

    /**
     * 修改投票选项
     * @return
     * @throws SQLException
     */
    public int updateVoteOption(VoteOption voteOption)throws SQLException;

}
